package fjj

import us.hebi.matlab.mat.format.Mat5
import us.hebi.matlab.mat.types.Sources

object Test {
  def main(args: Array[String]): Unit = {
    val source = Sources.openFile("cp.mat")
    val mat = Mat5.newReader(source).readMat()

    println(mat.getDescription)
    val m = mat.getMatrix("e2450")
    for (i <- 0 until m.getNumRows) {
      for (j <- 0 until m.getNumCols) {
        print(m.getDouble(i, j) + "\t")
      }
      println()
    }
  }
}
